
a1="乾坤震巽坎离艮兑"
a2=['111','000','001','110','010','101','100','011']
b='震坤艮 震艮震 坤巽坤 坤巽震 震巽兑 震艮震 震离艮 震离艮'
b1=b.split(" ")
print(b1)

flag=b''
import libnum
for i in b1:
    tmp=""
    for i1 in i:
        for j in range(8):
            if i1==a1[j]:
                tmp+=a2[j]
    tmp1=libnum.b2s(tmp)
    flag+=tmp1
print(flag)
